using System;
using System.Data;
using System.Data.SqlTypes;
using System.Data.SqlClient;

namespace DataEntity
{
	public class T_Bonuses_Detal : DBInteractionBase
	{
		#region Class Member Declarations
			private SqlString		_bonuses_Detal_Award1, _bonuses_Detal_Award2;
			private SqlGuid			_bonuses_Detal_ID, _bonuses_Detal_MainID;
		#endregion


		public T_Bonuses_Detal()
		{
			// Nothing for now.
		}



		#region Class Property Declarations
		public SqlGuid Bonuses_Detal_ID
		{
			get
			{
				return _bonuses_Detal_ID;
			}
			set
			{
				_bonuses_Detal_ID = value;
			}
		}


		public SqlGuid Bonuses_Detal_MainID
		{
			get
			{
				return _bonuses_Detal_MainID;
			}
			set
			{
				SqlGuid bonuses_Detal_MainIDTmp = (SqlGuid)value;
				if(bonuses_Detal_MainIDTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Bonuses_Detal_MainID", "Bonuses_Detal_MainID can't be NULL");
				}
				_bonuses_Detal_MainID = value;
			}
		}


		public SqlString Bonuses_Detal_Award1
		{
			get
			{
				return _bonuses_Detal_Award1;
			}
			set
			{
				SqlString bonuses_Detal_Award1Tmp = (SqlString)value;
				if(bonuses_Detal_Award1Tmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Bonuses_Detal_Award1", "Bonuses_Detal_Award1 can't be NULL");
				}
				_bonuses_Detal_Award1 = value;
			}
		}


		public SqlString Bonuses_Detal_Award2
		{
			get
			{
				return _bonuses_Detal_Award2;
			}
			set
			{
				SqlString bonuses_Detal_Award2Tmp = (SqlString)value;
				if(bonuses_Detal_Award2Tmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Bonuses_Detal_Award2", "Bonuses_Detal_Award2 can't be NULL");
				}
				_bonuses_Detal_Award2 = value;
			}
		}
		#endregion
	}
}
